using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using System.Threading;

namespace RIVER_RAID
{
    class Tiro
    {
        
        public Vector2 pos;
        public int altura;
        public int largura;
        private Thread thr;


        public Tiro(float x, float y)
        {
            pos = new Vector2(x, y);
            altura = 15;
            largura = 10;
            thr = new Thread(new ThreadStart(Subir));
        }

        private void Subir()
        {
            while (true)
            {
                pos.Y--;
                Thread.Sleep(10);
            }
        }

        public void Disparar()
        {
            thr.Start();
        }
    }
}
